//#include <stdio.h>

extern "C" {
	void putchar( int ch );
}

int func( int a )
{
    int i = 0;
    int j = 1;
    for ( i=0;i<a;i++)
    {
        if ( j == 10 ) then
            break
        end if
        j += ( j + 5 ) * i;
    }
}


int test_proc()
{
    int (*func_ptr)(int) = func;
    int i = 0;
    int j = 10;
    int q = 11;
    
    {
        int i = 0;
        int j = 1;
        for ( i=0;i<q;i++)
        {
            j += ( j + 5 ) * i;
        }
        q = j;
    }
    
    for ( i=0;i<q;i++)
    {
        j += ( j + 5 ) * i;
    }
    
	return func_ptr(j);
}

int main()
{
    int i=3;
    for (  i='A';i<'Q';i++ )
    {
        putchar( i );
    }

	forever loop
        putchar( i );	
		if ( i == 'Z' ) then
			break
		end if
		i = i + 1;
	end loop
}
